using Common;

using GRPCDemo.Utility;

namespace GRPCDemo
{
    internal class Program
    {
        static void Main(string[] args)
        {
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
            FileInfo fi = new FileInfo("log4net.config");
            log4net.Config.XmlConfigurator.ConfigureAndWatch(fi);
            Log.Init("GrpcDemoServer");
            Log.Info("Server Init");

            Server server = new Server();
            server.Init();
            server.Start();
            Log.Info("Server Running......");

            CommandHelper.Run();
            Log.Info("Server Exiting......");
            server.Stop();
            Log.Info("Server Exited");
        }

        
    }
}
